<template>
  <view>
<!--    <view>
      <uni-segmented-control
          :current="current"
          style-type="text"
          :values="items"
          active-color="#007aff"
          @clickItem="onClickItem"
      ></uni-segmented-control>
    </view>-->
    <view class="container">
      <uni-card
          :is-shadow="true"
          :title="storeShop.corporateName"
          :subTitle="storeShop.corporateUrl+storeShop.corporateAddress"
          extra="公司信息"
      >
        <view>
          <uni-row>
            <uni-col :span="12">员 工 总 数 ：
              <text class="text-green">{{ storeShop.corporateCount }}</text>
            </uni-col>
            <uni-col :span="12">注册资金：
              <text class="text-green">{{ storeShop.registeredCapital }}</text>
              万元
            </uni-col>
          </uni-row>
          <view>联系人姓名：
            <text class="text-green">{{ storeShop.contactName }}</text>
          </view>
          <view>电 子 邮 箱 ：
            <text class="text-green">{{ storeShop.contactEmail }}</text>
          </view>
          <view>联系人电话：
            <text class="text-green">{{ storeShop.contactPhone }}</text>
          </view>
          <view>公 司 电 话 ：
            <text class="text-green">{{ storeShop.corporatePhone }}</text>
          </view>
        </view>
      </uni-card>
      <uni-card
          :is-shadow="true"
          :title="storeShop.legalPersonName"
          :subTitle="storeShop.businessScope+''"
          :cover="storeShop.shopELicense"
          extra="营业执照"
      >
        <view>
          <view>营业执照号：
            <text class="text-green">{{ storeShop.licenseNumber }}</text>
          </view>
          <view>法人证件号：
            <text class="text-green">{{ storeShop.legalPersonDocument }}</text>
          </view>
          <view>证件电子版：
            <image :src="storeShop.legalPersonImage"></image>
          </view>
        </view>
      </uni-card>
      <uni-card
          :is-shadow="true"
          :title="storeShop.bankAccountName"
          extra="财务资质"
      >
        <view>
          <view>银 行 账 号 ：
            <text class="text-green">{{ storeShop.bankAccount }}</text>
          </view>
          <view>支 行 名 称 ：
            <text class="text-green">{{ storeShop.subBranch }}</text>
          </view>
          <view>支行联行号：
            <text class="text-green">{{ storeShop.lineNumber }}</text>
          </view>
        </view>
      </uni-card>
      <uni-card
          :is-shadow="true"
          :title="storeShop.shopName"
          :subTitle="storeShop.shopUrl+storeShop.shopAddress"
          :cover="storeShop.shopLogo"
          extra="店铺信息"
      >
        <view>
          <view>店铺负责人：<text class="text-green">{{ storeShop.shopUser }}</text></view>
          <view>负责人电话：<text class="text-green">{{ storeShop.shopPhone }}</text></view>
          <view>店 铺 状 态 ：<text class="text-green">{{ statusShop[storeShop.shopStatus] }}</text></view>
          <view>是 否 自 营 ：<text class="text-green">{{ isSelf[storeShop.isSelf] }}</text></view>
          <view>店 铺 规 模 ：<text class="text-green">{{ shopSize[storeShop.shopSize] }}</text></view>
          <view>主 营 产 品 ：<text class="text-green">{{ storeShop.mainProducts }}</text></view>
          <view>副 营 产 品 ：<text class="text-green">{{ storeShop.otherProducts }}</text></view>
          <uni-row><uni-col :span="24"><view>店 铺 简 介 ：<textarea class="text-green" :value="storeShop.shopIntroduction"/></view></uni-col></uni-row>
        </view>
      </uni-card>
    </view>
  </view>
</template>

<script>
import UniSegmentedControl
  from "../../../../../uni_modules/uni-segmented-control/components/uni-segmented-control/uni-segmented-control";
import UniCol from "../../../../../uni_modules/uni-row/components/uni-col/uni-col";
import UniRow from "../../../../../uni_modules/uni-row/components/uni-row/uni-row";

export default {
  components: {UniRow, UniCol, UniSegmentedControl},
  data() {
    return {
      //店铺状态字典
      statusShop: ["", "运营中", "审核中", "已关闭", "审核不通过"],
      //是否自营字典
      isSelf: ["非自营","自营"],
      //店铺规模字典
      shopSize: ["","小型","中型","大型"],
      storeShop: {},
      //分段器
      current: 0,
      items: ["公司信息", "营业执照", "账务资质", "店铺信息"],
    }
  },
  onLoad: function (option) {
    this.storeShop = JSON.parse(option.storeShop);
  },
  methods: {
    onClickItem(e) {
      this.current = e.currentIndex
    },
  }
}
</script>

<style>

</style>
